package com.zhangzhan.gulimallproduct.feign;

import com.zhangzhan.gulimallcommcon.tos.es.SkuEsModel;
import com.zhangzhan.gulimallcommcon.util.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

/**
 * @author 张一恒
 * @version 1.0
 * @description:
 * @date 2024/6/20 23:23
 */
@FeignClient("gulimall-search")
public interface SearchFeignService {

    @RequestMapping(value = "/save/es/product", method = RequestMethod.POST)
    //@RequiresPermissions("gulimallproduct:attrattrgrouprelation:list")
    public R saveProduct(@RequestBody List<SkuEsModel> skuEsModels);

}
